-- GENERATED SPELL FOR [Lightning Sentry] --


function spell0_26407(pUnit, Event) --@Charged Sentry Totem,Self--
pUnit:FullCastSpellOnTarget(52703,pUnit)
pUnit:RegisterEvent('Sorts_26407', 14500, 1)
end

function Sorts_26407(pUnit, Event)
local choix_sorts_26407 = math.random(0, 0)
if choix_sorts_26407 == 0 then
pUnit:RegisterEvent('spell0_26407', 1, 1)
end
end

function mob26407_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26407', math.random(1500, 3000), 1)
end

function mob26407_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26407_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26407_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26407, 1, 'mob26407_Action')
RegisterUnitEvent(26407, 2, 'mob26407_Leave')
RegisterUnitEvent(26407, 3, 'mob26407_Kill')
RegisterUnitEvent(26407, 4, 'mob26407_Die')
